package sjd.ahsj.springbootmybatisplusoracle.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 章节
 * </p>
 *
 * @author zhanghaogao
 * @since 2018-09-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@SuppressWarnings("serial")
@AllArgsConstructor
@NoArgsConstructor
public class Section extends SuperEntity<Section> {


    /**
     * 原id
     */
    @JsonIgnore
    @TableField("original_id")
    private String originalId;
    /**
     * 名称
     */
    @ApiModelProperty("名称")
    private String name;
    /**
     * 图片地址
     */
    @ApiModelProperty("图片地址")
    @TableField("img_url")
    private String imgUrl;
    /**
     * 金额
     */
    @ApiModelProperty("金额")
    private Long amount;
    /**
     * 内容
     */
    @JsonIgnore
    private String content;

    /**
     * 排序
     */
    @ApiModelProperty("排序")
    private Long sort;


    /**
     * 是否删除 0：有效，1：删除
     */
    @JSONField(serialize = false)
    @TableLogic
    @JsonIgnore
    private Integer state = 0;


    /**
     * 书籍id
     */
    @JsonIgnore
    @TableField("anime_id")
    private Long animeId;

}
